﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="InfomationContentDetail.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Infomation.InfomationContentDetail" %>
<asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
    <ItemTemplate>
        <asp:Label ID="TieuDeLabel" runat="server" Style="font-weight: 700; font-size: large"
            Text='<%# Eval("TieuDe") %>' />
        <br />
        <asp:Label ID="GhiChuLabel" runat="server" Style="font-weight: 700" Text='<%# Eval("GhiChu") %>' />
        <br />
        <asp:Label ID="NoiDungLabel" runat="server" Text='<%# Eval("NoiDung") %>' />
        <br />
        <br />
        <strong>More:</strong><br />
        <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl='<%# "~/infodetail.aspx?id="+Eval("Id") %>'
                    Text='<%# Eval("TieuDe") %>'></asp:LinkButton>
                <br />
            </ItemTemplate>
        </asp:DataList>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetByLoai"
            TypeName="IOBusiness.clsBSInfomationContent">
            <SelectParameters>
                <asp:ControlParameter ControlID="HiddenField1" DefaultValue="" Name="loaiid" PropertyName="Value"
                    Type="Int32" />
                <asp:QueryStringParameter DefaultValue="" Name="id" QueryStringField="id" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("InfoId") %>' />
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetById"
    TypeName="IOBusiness.clsBSInfomationContent">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
